package com.yfp.client.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yfp.client.domain.MiniBanner;
import com.yfp.client.domain.MiniBannerPosition;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
*
* @description 针对表【mini_banner(小程序banner)】的数据库操作Mapper
* @createDate 2024-07-17 16:43:18
* @Entity com.yfp.operation.domain.MiniBanner
*/

@Mapper
public interface MiniBannerMapper extends BaseMapper<MiniBanner> {
    List<MiniBanner> findListSortAndCreateTime(String cityName);
    /**
     * 获取弹窗banner
     * @return
     */
    List<MiniBanner> findPopup(String cityName);

    /**
     * 获取点位弹窗
     * @param miniBannerId
     * @return
     */
    List<MiniBannerPosition> findByMiniBannerId(@Param("miniBannerId") Long miniBannerId);
}




